<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js">
</script>
<script type="text/javascript">

var dt = JSON.stringify({
studentid:"098f6bcd4621d373cade4e832627b4f6",
type:"5",
rubricsections:
[
{
title:"strategies",
descriptiveText:"check understanding word skills knowledge of genres figurative language",
comments: "section notes",
rubricgradelevels:
[
{
title:"Not Yet Within Expectations",
descriptiveText:"<some description>",
rubricgradelines:
[
{
text:"appears unable to monitor own reading; needs help to check for understanding",
grade:"1"
},
{
text:"tends to sound-outerHeight new words without considering context or other clues",
grade:"2"
},
{
text:"may be unaware of the features of various genres or unable to see their relevance for specific tasks",
grade:"3"
},
{
text:"often frustrated by language that is not direct, concrete and literal",
grade:"4"
}
]
}
]
}
]
});

function rubricUpdate()
{
	$.post("http://localhost/api/php/rubricUpdate.php",
	{token:"sometoken",teacherid:"92b7f54e80d8b5be4787a09cda7f66d0",classid:"698d51a19d8a121ce581499d7b701668",studentid:"098f6bcd4621d373cade4e832627b4f6", data:dt}, function(data){ alert(JSON.stringify(data));}, "JSON" 
)}

</script>

<title>Web Service API</title>
</head>
<body>
<h2>user/login</h2>
<ul>
<li>method=get</li>
<li>parameter=username;password</li>
<li>usage example:
<a href=http://localhost/api/php/login.php?username=lzyong@yahoo.com&password=1234>learnprofiles.industrydesign.ca/login.php?username="email"&password="password"</a>
</ul>

<h2>entity</h2>
<ul>
<li>method=get</li>
<li>parameter=token;id;type</li>
<li>usage example:
<a href=http://localhost/api/php/entity.php?token=sometoken&id=92b7f54e80d8b5be4787a09cda7f66d0&type=teacher>learnprofiles.industrydesign.ca/api/php/entity.php?token="sometoken"&id="92b7f54e80d8b5be4787a09cda7f66d0"&type="teacher"</a>
</ul>

<h2>entity/timestamp</h2>
<ul>
<li>method=get</li>
<li>parameter=token;id;type</li>
<li>usage example:
<a href=http://localhost/api/php/entityTimestamp.php?token=sometoken&id=92b7f54e80d8b5be4787a09cda7f66d0&type=teacher>learnprofiles.industrydesign.ca/api/php/entityTimestamp.php?token="sometoken"&id="92b7f54e80d8b5be4787a09cda7f66d0"&type="teacher"</a>
</ul>

<h2>rubric</h2>
<ul>
<li>method=get</li>
<li>parameter=token;teacherid;classid;studentid</li>
<li>usage example:
<a href=http://localhost/api/php/rubric.php?token=sometoken&teacherid=92b7f54e80d8b5be4787a09cda7f66d0&classid=698d51a19d8a121ce581499d7b701668&studentid=098f6bcd4621d373cade4e832627b4f6>learnprofiles.industrydesign.ca/api/php/rubric.php?token="sometoken"&teacherID="92b7f54e80d8b5be4787a09cda7f66d0"&classID="698d51a19d8a121ce581499d7b701668"&studentID="098f6bcd4621d373cade4e832627b4f6 	"</a>
</ul>


<h2>rubric/timestamp</h2>
<ul>
<li>method=get</li>
<li>parameter=token;teacherid;classid;studentid</li>
<li>usage example:
<a href=http://localhost/api/php/rubricTimestamp.php?token=sometoken&teacherid=92b7f54e80d8b5be4787a09cda7f66d0&classid=698d51a19d8a121ce581499d7b701668&studentid=098f6bcd4621d373cade4e832627b4f6>learnprofiles.industrydesign.ca/api/php/rubricTimestamp.php?token="sometoken"&teacherid="92b7f54e80d8b5be4787a09cda7f66d0"&classid="698d51a19d8a121ce581499d7b701668"&studentid="098f6bcd4621d373cade4e832627b4f6 	"</a>
</ul>

<h2>rubric/create</h2>
<ul>
<li>method=get</li>
<li>parameter=token;classid;studentid;type</li>
<li>Usage example:
<a href=http://localhost/api/php/rubricCreate.php?token=sometoken&classid=698d51a19d8a121ce581499d7b701668&studentid=098f6bcd4621d373cade4e832627b4f6&type=19>learnprofiles.industrydesign.ca/api/rubricCreate.php/token="sometoken"&classid="698d51a19d8a121ce581499d7b701668"&studentid="098f6bcd4621d373cade4e832627b4f6"&type=19 </a>
</ul>

<h2>rubric/update</h2>
<ul>
<li>method=post</li>
<li>parameter=token;teacherid;classid;studentid</li>
<li>data={
studentid:"098f6bcd4621d373cade4e832627b4f6",
type:"5",
rubricsections:
[
{
title:"strategies",
descriptiveText:"check understanding word skills knowledge of genres figurative language",
comments: "section notes",
rubricgradelevels:
[
{
title:"Not Yet Within Expectations",
descriptiveText:"<some description>",
rubricgradelines:
[
{
text:"appears unable to monitor own reading; needs help to check for understanding",
grade:"1"
},
{
text:"tends to sound-outerHeight new words without considering context or other clues",
grade:"2"
},
{
text:"may be unaware of the features of various genres or unable to see their relevance for specific tasks",
grade:"3"
},
{
text:"often frustrated by language that is not direct, concrete and literal",
grade:"4"
}
]
}
]
}
]
};
<li>url=learnprofiles.industrydesign.ca/api/php/rubricUpdate.php
<li>Usage example:
<button onclick="rubricUpdate()" name="Update Rubric">Update Rubric</button>
</ul>
<div>
</div>

</body>
</html>
